package org.vineatoum.business.action;

import java.util.HashMap;
import java.util.Map;

import org.vineatoum.business.Plantation;
import org.vineatoum.business.action.abstraction.Action;
import org.vineatoum.business.state.abstraction.VinAbstract;

public class ActionDescriptor {
	private Action action;
	private Map<VinAbstract, Float> vinInput;
	private Map<VinAbstract, Float> vinOutput;
	
	public ActionDescriptor(Action action) {
		this.action = action;
		this.vinInput = new HashMap<VinAbstract, Float>();
		this.vinOutput = new HashMap<VinAbstract, Float>();
	}
	
	/**
	 * @param action the action to set
	 */
	public void setAction(Action action) {
		this.action = action;
	}
	/**
	 * @return the action
	 */
	public Action getAction() {
		return action;
	}
	/**
	 * @param vinInput the vinInput to set
	 */
	public void setVinInput(HashMap<VinAbstract, Float> vinInput) {
		this.vinInput = vinInput;
	}
	/**
	 * @return the vinInput
	 */
	public Map<VinAbstract, Float> getVinInput() {
		return vinInput;
	}
	/**
	 * @param vinOutput the vinOutput to set
	 */
	public void setVinOutput(HashMap<VinAbstract, Float> vinOutput) {
		this.vinOutput = vinOutput;
	}
	/**
	 * @return the vinOutput
	 */
	public Map<VinAbstract, Float> getVinOutput() {
		return vinOutput;
	}

	public void addVinInput(VinAbstract vinAbstract, float percentage) {
		vinInput.put(vinAbstract, percentage);
	}
	
	public void addVinOutput(VinAbstract vinAbstract, float percentage) {
		vinOutput.put(vinAbstract, percentage);
	}
}
